package com.cos.shop.common;

public interface Const {

    String SUCCESS = "1";
    String FAIL = "0";
    String FORWARD = "forward:";
    String REDIRECT = "redirect:";

    public interface SystemConst{
        // 登录状态
        String IS_LOGIN="is_login";
        // 验证码
        String VALI_CODE="valiCode";
        // 自动登录
        String AUTO_LOGIN="autoLogin";
    }

    public interface UserCode{
        //激活
        int IS_ACTIVE=1;
        //未激活
        int NOT_ACTIVE=0;
        //用户
        int COMMON_USER=0;
        //管理员
        int ADMIN=1;
        //是默认地址
        int DEFAULT_ADDRESS = 1;
        int NOT_DEFAULT_ADDRESS = 0;
    }

    public interface OrderCode {
        // 未付款
        int NOT_PAY = 0;
        //已经付款未发货
        int NOT_SEND = 1;
        //发货待收货
        int IS_SEND = 2;
        // 收货待评价
        int ENCOMMENT = 3;
        //订单完成
        int DOEN = 4;
        // 退货状态
        int RETURN = 5;
    }
}
